package com.ruoyi.merchant.mapper;


import com.ruoyi.common.core.cg.pojo.TLeaderStore;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

/**
* @author ？？？
* @description 针对表【t_leader_store】的数据库操作Mapper
* @createDate 2025-03-13 08:38:20
* @Entity com.zt.pojo.TLeaderStore
*/
@Mapper
public interface TLeaderStoreMapper {
    @Insert("insert into t_leader_store (leader_id,store_id)\n" +
            "values (#{leaderId},#{storeId})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int leaderStoreSave(TLeaderStore tLeaderStore);


    //根据leaderId查询storeId
    @Select("select * from t_leader_store where leader_id=#{uid}")
    TLeaderStore selectById(Integer uid);
}




